Reconstruction of the source code of a station of CNPC to GetShell
Reconstruction of the source code of a station of CNPC to getshell
1.85.51.141 git source code LeakageCorresponding Domain NameHttp://mtp.cnpc.com.cn
Audit code/Resources/data/appstore/appOperate. phpStart with line 31
If ($ act = 'uploadfile') {if (! Is_dir (".. /.. /files/appfiles ") {// If the folder mkdir (".. /.. /files/appfiles "
added to the Cocos2d.js appfiles array, the system will load the array JS files sequentially)B. Gamescene.js inside define scene, inherit from Cc.scene// Scene var Gamescene = cc. Scene.extend ({ onEnter:function () { this. _super (); Call the parent class with the same name method, which is called CC. The scene's OnEnter // is usually written here by itself, after the operation });C. Modify the boot scene to Gamescene.js in
send the completerecovery message to start the operation after data recovery is complete.
First, let's take a look at how to restore data through the interface provided by zookeeperleaderelectionagent.
Override def readpersisteddata (): (SEQ [applicationinfo], seq [driverinfo], seq [workerinfo]) = {Val sortedfiles = zk. getchildren (). forpath (working_dir ). tolist. sorted // get all files Val appfiles = sortedfiles. filter (_. startswith ("app _")
First, cocos2dhtml5 uses javascript programming, which is case sensitive.
1. Create a cocos2dhtml5 project.
Directly copy the built-in helloworld of the engine and change the folder name.
2. Add a js File
When adding a js file to your project, you need to add your file name to the appFiles in cocos2d. js:
appFiles:[ 'src/resource.js', 'src/Load.js', 'src/DragonLayer.js'//ad
},{Src: s_CloseSelected}
// Plist
// Fnt
// Tmx
// Bgm
// Effect];
Cocos2d. js(Function (){Var d = document;Var c ={COCOS2D_DEBUG: 2, // 0 to turn debug off, 1 for basic debug, and 2 for full debugBox2d: false,Chipmunk: false,ShowFPS: true,LoadExtension: false,FrameRate: 60,Tag: 'gamecanca', // the dom element to run cocos2d onEngineDir: '../cocos2d /',// SingleEngineFile :'',AppFiles :['Src/resource. js ','Src/myApp. js' // add your own files in orde
First COCOS2DHTML5 is programmed with JavaScript, which is strictly case-sensitive.1, New COCOS2DHTML5 project.Directly copy the engine's own HelloWorld, change the folder name.2. Add JS fileWhen you add a new JS file to your project, you need to add your file name to the appfiles inside the cocos2d.js:appfiles:[ ' src/resource.js ', ' src/load.js ', ' src/dragonlayer.js '//add your own files in order here ]And
1, back up the usual footsteps:Footsteps One#!/bin/shmkdir-p/backup/' date +%y%m%d ' cd/opt/tar-czvf/backup/' date +%y%m%d '/m_ ' date +%s '. tar.gz m/Script two:#! /bin/bashmkdir-p/backup/' date +%y%m%d ' cd/opt/tar-czvf/backup/' date +%y%m%d '/m_ ' date +%y%m%d%h%m%s '. tar.gz-- Exclude=files--exclude=*.jar m/tar-czvf/backup/' date +%y%m%d '/home_ ' date +%y%m%d%h%m%s '. tar.gz--exclude=files-- Exclude=*.jar home/Script Three:#! /bin/bashmkdir-p/backup/webapp/' Date +%y%m%d ' cd/gjbweb/#tar-cz
whether the frame rate display is turned on. The default is False.FramerateSame as the original configuration, indicating the set frame rate. The default is 60.EnginedirSame as the original configuration, used to specify the engine directory. The difference is that, in the V2 version, the point is **/cocos2d-html5/cocos2d , but in the V3 version, just point to the **/cocos2d-html5 line. The default is "FRAMEWORKS/COCOS2D-HTML5".JslistEquivalent to the original
First, COCOS2DHTML5 uses JavaScript programming to strictly differentiate between uppercase and lowercase.1, New COCOS2DHTML5 project.Direct replication engine comes with HelloWorld. You can change the name of the catalogue.2. Add JS fileWhen you add a new JS file to your project, you will need to add your file name to the appfiles inside the cocos2d.js:appfiles:[ ' src/resource.js ', ' src/load.js ', ' src/dragonlayer
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.